<!-- 右 -->
<div class="content">
    <div class="header">
        <h1 class="page-title">会员列表</h1>
    </div>

    <div class="well">
        <!-- search button -->
        <form action="" method="get" class="form-search">
            <div class="row-fluid" style="text-align: left;">
                <div class="pull-left span4 unstyled">
                    <p> 用户名：<input class="input-medium" name="" type="text"></p>
                </div>
            </div>
            <button type="submit" class="btn">查找</button>
            <a class="btn btn-primary" href="{:url('/admin/User/add')}">新增</a>
        </form>
    </div>
    <div class="well">
        <!-- table -->
        <table class="table table-bordered table-hover table-condensed">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>用户名</th>
                    <th>联系方式</th>
                    <th>是否可用</th>
                    <th>最近更新时间</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            {foreach $data as $v}
                <tr class="success">
                    <td>{$v.id}</td>
                    <td>{$v.username}</td>
                    <td>{$v.phone}</td>
                    <td>
                        {if $v.is_check == 1}
                            可用
                        {else /}
                            不可用
                        {/if}
                    </td>
                    <td>{$v.last_time_login|date="Y-m-d h:i:s",###}</td>
                    <td>
                        <a href="{:url('admin/User/edit',['id'=>$v.id])}">编辑</a>
                        <a href="javascript:void(0);" onclick="if(confirm('确认删除？')) location.href='{:url(\'admin/user/delete\',[\'id\'=>$v.id])}'"> 删除 </a>
                    </td>
                </tr>
            {/foreach}
            </tbody>
        </table>
        <!-- pagination -->
        <div class="pagination">
            <ul>
                <li><a href="#">Prev</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">4</a></li>
                <li><a href="#">Next</a></li>
            </ul>
        </div>
    </div>
